package login

import (
	"context"
	__ "z/rpc/proto"
	"z/service/server"
)

// server is used to implement helloworld.GreeterServer.
type UserServer struct {
	__.UnimplementedUserServer
}

// SayHello implements helloworld.GreeterServer
func (s *UserServer) Register(_ context.Context, in *__.RegisterReq) (*__.RegisterResp, error) {
	register, err := server.Register(in)
	if err != nil {
		return nil, err
	}
	return register, nil
}
